package cn.itcast.hotel.repository;

import cn.itcast.hotel.pojo.HotelEs;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface HotelRepository extends ElasticsearchRepository<HotelEs,Long> {
    List<HotelEs> findByCity(String city);

    List<HotelEs> findByBrand(String brand);

    List<HotelEs> findByCityAndBrand(String city, String brand);

    List<HotelEs> findByPriceBetween(int low, int high);
}
